package com.ruoyi.user.mapper;

import com.ruoyi.user.domain.UserZfbCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户支付宝账户Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-16
 */
public interface UserZfbCountMapper 
{
    /**
     * 查询用户支付宝账户
     * 
     * @param id 用户支付宝账户主键
     * @return 用户支付宝账户
     */
    public UserZfbCount selectUserZfbCountById(Long id);

    /**
     * 查询用户支付宝账户列表
     * 
     * @param userZfbCount 用户支付宝账户
     * @return 用户支付宝账户集合
     */
    public List<UserZfbCount> selectUserZfbCountList(UserZfbCount userZfbCount);

    /**
     * 新增用户支付宝账户
     * 
     * @param userZfbCount 用户支付宝账户
     * @return 结果
     */
    public int insertUserZfbCount(UserZfbCount userZfbCount);

    /**
     * 修改用户支付宝账户
     * 
     * @param userZfbCount 用户支付宝账户
     * @return 结果
     */
    public int updateUserZfbCount(UserZfbCount userZfbCount);

    /**
     * 删除用户支付宝账户
     * 
     * @param id 用户支付宝账户主键
     * @return 结果
     */
    public int deleteUserZfbCountById(Long id);

    /**
     * 批量删除用户支付宝账户
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUserZfbCountByIds(Long[] ids);

    UserZfbCount selectOne(@Param("userId") Long userId);

    UserZfbCount selectOneBySalesmanId(@Param("salesmanId")Long salesmanId);

    UserZfbCount selectOneByChannelId(@Param("channelId")Long channelId);
}
